﻿using ArtMath.Core.Data;
using System.Drawing;
using System;
using ArtMath.Setting;
using ArtMath.AuxiliaryTool;
using System.Windows.Forms;

namespace ArtMath.Component.Annotation
{
    public class PointEraser : Ring
    {
        public event Action<PointD> Erase;
        public PointEraser()
        {
            Color = Color.Red;
        }
        public override void MouseMove(MouseMoveEventArgs e)
        {
            switch (e.Button)
            {
                case MouseButtons.Left:
                    Erase?.Invoke(e.CurrentPosition);
                    break;
            }
            base.MouseMove(e);
        }
    }
}
